project('xcb', ['c', 'cpp'],
  version : '0.1',
  default_options : ['warning_level=3'])

PREFIX='xcb'
CARGS=['-Wall']
DEPS=[
  dependency('xcb', version:'>=1.0.0'),
  ]
INCDIRS=include_directories('inc')
add_project_arguments('-DHDEBUG', language: ['c', 'cpp'])

executable(PREFIX+'_1',
           '1.c',
           c_args: CARGS,
           dependencies: DEPS,
           include_directories:INCDIRS,
           install : false)
executable(PREFIX+'_2',
           '2.c',
           c_args: CARGS+['-Wno-format-security'],
           dependencies: DEPS,
           include_directories:INCDIRS,
           install : false)
executable(PREFIX+'_3',
           ['3.c', 'wm/map.c'],
           c_args: CARGS+['-Wno-format-security'],
           dependencies: DEPS,
           include_directories:INCDIRS,
           install : false)
executable(PREFIX+'_4',
           '4.c',
           c_args: CARGS+['-Wno-unused-parameter'],
           dependencies: DEPS,
           include_directories:INCDIRS,
           install : false)
subdir('wm')
subdir('basic_wm')